package com.lyw.zerox;

public class Demo1 {
    public static void main(String[] args) {
        Runnable  runnable = new MyRun();
        runnable.run();

        Runnable runnable1 = new Runnable() {
            @Override
            public void run() {
                System.out.println("hehehehe");
            }
        };
        runnable1.run();


        Runnable runnable2 =() -> System.out.println("hhahahha222");
        runnable2.run();
    }
}
